<!-- <div class="page-header line1">
    <h4>Quản lý nội dung</h4>
</div> -->
<!-- START Row -->
<div class="row-fluid">
    <!-- START Datatable 2 -->
    <div class="span12 widget dark">
        <header>
            <h4 class="title pull-left"><span class="icon icone-list"></span></h4>
            <!-- START Button Group -->
            <div class="btn-group pull-left">
            </div>
            <div class="btn-group pull-right">
				<?php echo $this->Html->link("<span class=\"icone-edit\"></span>&nbsp;&nbsp;Thêm mới",array("action"=>"add"),array("class"=>"btn btn-success","escape"=>false));?>
            </div>
            <!--/ END Button Group -->
        </header>
		<section class="body">
			<div class="body-inner no-padding">
                <?php //debug($plugins); ?>
				<table class="table table-bordered table-striped table-hover datatable">
					<thead class="sorting">
						<tr>
						<th><?php echo __d('Manager','name'); ?></th>
						<th><?php echo __d('Manager','description'); ?></th>
						<th><?php echo __d('Manager','status'); ?></th>
						<th class="actions"><?php echo __('Actions'); ?></th>
						</tr>
					</thead>
					<tbody>
					<?php foreach ($plugins as $k => $v): ?>
						<tr>
						<td><?php echo h($v["name"]); ?>&nbsp;</td>
						<td><?php echo h($v["description"]); ?>&nbsp;</td>
						<td class="center">
							<?php if($v['active'] == false){?>
								<span title="Ẩn" class='icon icone-remove red pointer'></span>
							<?php }else{?>
								<span title="Hiển thị" class='icon icone-ok green pointer'></span>
							<?php }?>
						</td>
							<td class="actions">
								<div class="toolbar">
									<?php if($v['active'] == true){ ?>
									<?php echo $this->Html->link("<span class=\"icone-off\"></span>",array("action"=>"deactive",$v["name"]),array("escape"=>false,'title'=>'Khóa',"class"=>"btn btn-small btn-inverse"));?>
									<?php }else{ ?>
									<?php echo $this->Html->link("<span class=\"icone-ok\"></span>",array("action"=>"active",$v["name"]),array("escape"=>false,'title'=>'Kích hoạt',"class"=>"btn btn-small btn-success"));?>
									<?php } ?>
									<?php echo $this->Form->postLink("<span class=\"icone-trash\"></span>", array("action" => "delete", $v["name"]), array("escape"=>false,'title'=>'Xóa',"class"=>"btn btn-small btn-danger"), __("confirmDel", $v["name"])); ?>
								</div>
							</td>
						</tr>
						<?php endforeach; ?>
					</tbody>
				</table>
			<div>
			<?php //echo $this->element("libs/pagination");?>
        </section>
    </div>
    <!--/ END Datatable  -->
</div>
<!--/ END Row -->



